package com.taowan.xunbaozl.morning_speak.design_pattern.day10;

/**
 * Created by 杨观回 on 2016/3/3 0003.
 */
public class WriteCommand implements Command {

    private Receiver receiver;

    public WriteCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void exec() {
        receiver.action();
    }
}
